# 编译器
CC = gcc
# 编译选项
CFLAGS = -Iinclude 
# 源文件
SRC_DIR = src
TEST_DIR = test
INCLUDE_DIR = include
SRCS = $(wildcard $(SRC_DIR)/*.c) $(wildcard $(TEST_DIR)/*.c)
OBJS = $(SRCS:.c=.o)
# 目标可执行文件
TARGET = mytest

all: $(TARGET)

$(TARGET): $(OBJS)
	$(CC) $(CFLAGS) -o $@ $^ -lgmssl

%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@ 

clean:
	rm -f $(OBJS) $(TARGET)